
#include <dev.h>
#include "sio.h"

/* ------------------------------------------------------------------------- */

static uint8 index;

/* ------------------------------------------------------------------------- */

void fastcall sio_init(void)
{
	index = 0x00;
}

uint8 fastcall sio_get_index(void)
{
	write_log("[SIO] read index = %02X", index);
	return index;
}

void fastcall sio_set_index(uint8 idx)
{
	write_log("[SIO] write index = %02X", idx);
	index = idx;
}

uint8 fastcall sio_get_data(void)
{
	write_log("[SIO] read data = %02X", 0);
	return 0;
}

void fastcall sio_set_data(uint8 data)
{
	write_log("[SIO] write data = %02X", data);
}

/* ------------------------------------------------------------------------- */
